# 2.获取一个字符串,打印字符串里ASCII码最大的那个字符
d = input()
a = 0
z = 0
f = ''
while a<len(d):
    if z<ord(d[a]):
        f = d[a]
    a+=1
print(f)